#ifndef MAIN_H
#define MAIN_H
#include <cdk/cdk.h>
#include <curses.h>

#include <pcap/pcap.h>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <signal.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <time.h>
#include <sys/socket.h>




void printD(char* log);
void printM(char* log);
int actionBtnCapture(EObjectType cdktype, void *object, void *clientData, chtype key);
int opengnuplot(EObjectType cdktype, void *object, void *clientData, chtype key);
void stop(int sig);
void endOfProgram();

struct ethernet_addr{
    char addr[18];
    struct ethernet_addr * next;
};

struct ip_addr{
    char addr[12];
    struct ip_addr * next;
};

typedef enum {
    APP_MESS,
    APP_NET,
    APP_MAIL,
    APP_DROPBOX,
    APP_MAX
} Apps;

typedef struct stats {
    struct ethernet_addr * eth;
    struct ip_addr * ip;
    int app[APP_MAX];
} Stats;

#include "niv2.h"
#endif


